- /* sromuldb.cpp by K.Tsuru */
- // function ID = 824 BRADIX
- /************************
- SRational class
- operator *=double
- *************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- SRational operator*(const SRational& m, double d){
- SRational r; // r.reduceDone = 0;
- if(d == 0.0) r.SetZero();
- else if(d == 1.0L) r = m;
- else if(d == -1.0L) r = -m;
- else r.Set( m.NumNR()*(SInteger)d, m.DenNR() ); // includes r.reduce(false);
- return r;
- }
sromuldb.cpp : last modifiled at 2016/06/26 16:29:28(463 bytes)
created at 2016/06/26 15:57:35
The creation time of this html file is 2016/09/18 20:28:05 (Sun Sep 18 20:28:05 2016).